package network.netty.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * <p>
 * TCP服务端的handler
 * </p>
 *
 * @author LovelyBigDuck
 * @date 2021/5/29 20:02
 */
public class ServerChatMessageReadHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        // 读取数据，处理逻辑
        System.out.println("收到数据：" + msg);
    }
}
